import { Card, Button } from "antd";
import "./index.less";

const PersonalCard = (props: any) => {
	const sendClickMessage = () => {
		props.handlerChange("欢迎来到cskcool的react展示页面-本页面基于开源项目HooksAdmin修改");
	};

	return (
		<div>
			<Card>
				<h2>
					{props.title}
					<Button type="link" onClick={sendClickMessage}>
						打招呼
					</Button>
				</h2>
			</Card>
		</div>
	);
};

export default PersonalCard;
